﻿#ifndef OBJECT_RECOGNITION_H
#define OBJECT_RECOGNITION_H

#include <opencv2/opencv.hpp>

using namespace cv;
using namespace std;

class ObjectRecognition {
public:
    ObjectRecognition() {}

    void recognize(Mat& image, double length, const Mat& cameraMatrix, const Mat& distCoeffs);

private:
    Scalar getAverageBGRColor(const Mat& image, const vector<Point>& poly);
    Scalar getAverageHSVColor(const Mat& image, const vector<Point>& poly);
};

#endif // OBJECT_RECOGNITION_H